package com.heima.api.client;

import com.heima.api.config.DefaultFeignConfig;
import com.heima.api.domain.dto.PayOrderDTO;
import com.heima.api.fallback.PayClientFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "pay-service",configuration = DefaultFeignConfig.class,fallbackFactory = PayClientFallback.class)
public interface PayClient {
    @GetMapping("/pay-pay-orders/biz/{id}")
    PayOrderDTO queryByBizOrderNo(@PathVariable Long bizOrderNo);
}
